package com.xuzhen.dao;

import java.util.List;

import com.xuzhen.domain.User;

public interface UserDao {

	public int insert(User user);

	public int update(User user);

	public int delete(String userName);
	
	public User getById(Long id);

	public List<User> selectAll();

	public int countAll();

	public User findByUserName(String userName);
	
	public int countUserByName(String userName);
}
